package com.itheima.day09.Zuoye.Zuoye2;

public class KebianBianliang {
    public static void getsum(int ...x){
        int a = 0;
        for (int i = 0; i < x.length; i++) {
             a += x[i];
        }
        System.out.println(a);
    }
    public static void main(String[] args) {
        getsum(1,2,3,4,5,6,7,8,9,10);
    }
}
